﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TaskAsyncDemo
{
    public class DeviceHelper
    {
        public async static Task<Dictionary<double, double>> ReadData()
        {
            var res = new Dictionary<double, double>();
            var r = new Random();
            for(int i = 0; i < 80; i++)
            {
                res.Add(i, r.Next());
            }
            await Task.Delay(5000);
            return res;
        }
    }
}
